import React from 'react';
import "antd/dist/antd.css";
import { Input, Button } from 'antd';

const input = ({ value, handleInputChange, addTodoItem }) => {
    return (
        <>
            <Input value={value} onChange={e => handleInputChange(e.target.value)} placeholder="todo info" style={{width:'300px',marginRight:'10px'}}/>
            <Button type="primary" onClick={addTodoItem}>submit</Button>
        </>
    )
}
export default input;

